/*
 * @Descripttion: 
 * @version: 
 * @Author: yuanpingfang
 * @Date: 2021-04-16 14:08:01
 * @LastEditors: yuanpingfang
 * @LastEditTime: 2021-04-17 12:20:37
 */
import request from '@/utils/request'

// 查询内容类型列表
export function listContenttype(query) {
  return request({
    url: '/doc/contenttype/list',
    method: 'get',
    params: query
  })
}

// 查询内容类型详细
export function getContenttype(contentTypeId) {
  return request({
    url: '/doc/contenttype/' + contentTypeId,
    method: 'get'
  })
}

// 新增内容类型
export function addContenttype(data) {
  return request({
    url: '/doc/contenttype',
    method: 'post',
    data: data
  })
}

// 修改内容类型
export function updateContenttype(data) {
  return request({
    url: '/doc/contenttype',
    method: 'put',
    data: data
  })
}

// 删除内容类型
export function delContenttype(contentTypeId) {
  return request({
    url: '/doc/contenttype/' + contentTypeId,
    method: 'delete'
  })
}

// 导出内容类型
export function exportContenttype(query) {
  return request({
    url: '/doc/contenttype/export',
    method: 'get',
    params: query
  })
}